﻿
$(document).ready(function () {
    menu.countdown();
});

var menu = {
    refresh: function () {
        $.ajax({
            url: "menu",
            success: function (result) {
                $('#menu').html(result);
                menu.countdown();
            },
            dataType: 'text'
        });
    },
    countdown: function () {
        var element = $("#home-menuCountdown");
        utils.countdown(element, element.html(), function () { menu.refresh(); });
    }
};

